<template>
  <el-card>
    <el-table :data="tableData" stripe style="width: 100%">
      <el-table-column fixed label="序号" width="80" >
      <template #default="scope">
        {{scope.$index + 1}}
      </template>
    </el-table-column>
    <el-table-column prop="pid" label="pid" width="180" />
    <el-table-column prop="name" label="name" />
  </el-table>
  </el-card>
</template>
<script setup lang="ts">
import { invoke } from "@tauri-apps/api/tauri";
import { onMounted, ref } from "vue";
const tableData = ref([]);

onMounted(async () => {
  tableData.value = await invoke("enum_processes")
  console.log(tableData.value)
})
</script>

<style scoped>

</style>
